import request from '@/utils/request'

export function knowledgeLibraryList(query) {
  return request({
    url: '/manager/knowledgeLibrary/list',
    method: 'get',
    params: query
  })
}

export function knowledgeLibraryAdd(data) {
    return request({
      url: '/manager/knowledgeLibrary',
      method: 'post',
      data
    })
  }
  
  export function knowledgeLibraryEdit(data) {
    return request({
      url: '/manager/knowledgeLibrary',
      method: 'put',
      data
    })
  }
  export function knowledgeLibraryRomove(id) {
    return request({
      url: '/manager/knowledgeLibrary/'+id,
      method: 'delete',
      
    })
  }

  // 上传文件
  export function ossUpload(data) {
    return request({
      url: '/resource/oss/upload',
      method: 'post',
      data
    })
  }
  
